local skel = fk.CreateSkill {
  name = "emo__liuzu",
  tags = {Skill.Compulsory},
}

skel:addEffect(fk.EventPhaseEnd, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(skel.name) and target.phase == Player.Play and player:getHandcardNum() ~= 6
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:setEmotion(player, "./packages/moepack/image/anim/emo__liuzu")
    local x = 6 - player:getHandcardNum()
    if x > 0 then
      player:drawCards(x, skel.name)
    else
      room:askToDiscard(target, {
        min_num = -x, max_num = -x, skill_name = skel.name, cancelable = false, include_equip = false
      })
    end
  end,
})

skel:addEffect("maxcards", {
  fixed_func = function(self, player)
    if player:hasSkill(skel.name) then
      return 6
    end
  end,
})

Fk:loadTranslationTable{
  ["emo__liuzu"] = "六足",
  [":emo__liuzu"] = "锁定技，任意角色的出牌阶段结束时，你将手牌数调整至6；你的手牌上限为6。",

  ["$emo__liuzu1"] = "（走路声）",
  ["$emo__liuzu2"] = "（游泳声）",
}


return skel
